package me.landery.modules.sinco.service.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import me.landery.base.BaseDTO;
import me.landery.base.BaseEntity;
import me.landery.modules.system.service.dto.UserDto;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Timestamp;
@Getter
@Setter
public class ApplicationDto  extends BaseDTO implements Serializable {
    /** 防止精度丢失 */
//    @JSONField(serializeUsing = ToStringSerializer.class)
    @NotNull(groups = BaseEntity.Update.class)
    private Long id;

    /** 用户id */
    private UserDto user;

    /** 应用id */
    private String appid;

    /** 接口访问密钥 */
    private String secretkey;

    /** 应用备注 */
    private String remark;
    /** 应用名称 */
    private String name;

    /** 应用状态0禁用，1启用 */
    private Integer status;

    /** 创建日期 */
    private Timestamp createTime;

}
